// filepath: src/directive/hasPerm.ts
export default {
  mounted(el, binding) {
    // 这里写你的权限判断逻辑
    const perm = binding.value;
    // 假设有个 checkPerm 方法判断权限
    if (typeof checkPerm === "function" && !checkPerm(perm)) {
      el.style.display = "none";
    }
  },
};
